﻿using System.Linq;
using System.Web.Mvc;
using Lavka.Models;

namespace Lavka.Controllers
{
    public class HomeController : Controller
    {
        private LavkaDbEntities context = new LavkaDbEntities();
        public ActionResult Index()
        {
            ViewData["Categories"] = context.Caterories.Where(c => c.ParentId == 1).ToList();
            return View();
        }
        public ActionResult About()
        {
            return View();
        }
        public ActionResult Delivery()
        {
            return View();
        }
        public ActionResult Payment()
        {
            return View();
        }
        public ActionResult Contacts()
        {
            return View();
        }
    }
}
